<?php

namespace app\shopapi\controller;


use app\admin\model\shop\Question;
use app\common\controller\Shopapi;
use app\api\model\UserConsumeLog;

/**
 * 客服接口
 */
class Kefu extends Shopapi
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = '*';

    //问题列表
    public function question()
    {
        $type = input('type','common');
        $lists = Question::where('type',$type)->order('weigh desc')->select();
        $this->success('',$lists);
    }


    //问题详情
    public function questionDetail()
    {
        $id = input('id',0);
        $detail = Question::get($id);
        $this->success('',$detail);
    }

}